<?php
if (!defined("BASEPATH")) exit("No direct script access allowed");

class Institute_address extends MY_Model {

	function __construct() {
		parent::__construct();
		$this->tableName = "institute_address";
		$this->prefix = "add";
	}

	function addressMapper($addressList) {
		$this->load->model("city");
		foreach($addressList as $ii => $address) {
			$addressList[$ii]->city = $this->city->getById($address->add_city_id);
		}
		return $addressList;
	}

}